package org.example.controller;


import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/goods")
public class GoodsController {


    @RequestMapping("/select")
    //@PreAuthorize("hasAnyAuthority('sys:goods:select')")
    public String getGoods() {
        return "getGoods";
    }

    @RequestMapping("/update")
    @PreAuthorize("hasAnyAuthority('sys:goods:update')")
    public String updateGoods() {
        return "updateGoods";
    }
}
